package org.jeecg.entity.basedata;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.system.entity.BaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 用章配置
 * @Author: liurui
 * @Date:   2021-01-10
 * @Version: V1.0
 */
@Data
@TableName("base_seal")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="base_seal对象", description="用章配置")
public class BaseSeal extends BaseEntity  {
    
	/**createBy*/
	@Excel(name = "createBy", width = 15)
    @ApiModelProperty(value = "createBy")
	private String createBy;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private Date createTime;
	/**delFlag*/
	@Excel(name = "delFlag", width = 15)
    @ApiModelProperty(value = "delFlag")
	@TableLogic
	private String delFlag;
	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private String id;
	/**图片路径*/
    @ApiModelProperty(value = "图片路径")
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String imagePath;
	/**项目id*/
	@Excel(name = "项目id", width = 15)
    @ApiModelProperty(value = "项目id")
	private String projectId;
	/**所属公司名称*/
	@Excel(name = "所属公司名称", width = 15)
    @ApiModelProperty(value = "所属公司名称")
	private String departName;
	/**所属公司ID*/
	@Excel(name = "所属公司ID", width = 15)
    @ApiModelProperty(value = "所属公司ID")
	private String departId;
	/**remarks*/
	@Excel(name = "remarks", width = 15)
    @ApiModelProperty(value = "remarks")
	private String remarks;
	/**用章类型 0：收款用章*/
	@Excel(name = "用章类型 0：收款用章", width = 15)
    @ApiModelProperty(value = "用章类型 0：收款用章")
	@Dict(dicCode = "seal_type")
	private String sealType;
	/**渠道id*/
	@Excel(name = "渠道id", width = 15)
    @ApiModelProperty(value = "渠道id")
	private String tenantId;
	/**updateBy*/
	@Excel(name = "updateBy", width = 15)
    @ApiModelProperty(value = "updateBy")
	private String updateBy;
	/**updateTime*/
	@Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
	private Date updateTime;

	@TableField(exist = false)
	private String projectName;

	/*创建人*/
	@TableField(exist = false)
	private String createName;

	/*修改人*/
	@TableField(exist = false)
	private String updateName;
}
